<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <div style="height:100;">
        <form action="{:url('index/index/edit')}" method="post">
            name: <input type="text" name="name" value="{$res.name}">
            sex: <input type="radio" name="sex" value="1" {if condition="$res.sex eq '1'"}checked{/if}>男
            <input type="radio" name="sex" value="0" {if condition="$res.sex eq '0'"}checked{/if}>女
            age: <input type="text" name="age" value="{$res.age}">
            <input type="hidden" name="id" value="{$res.id}">
            <input type="submit" value="提交">
        </form>
    </div>
</body>
</html>